import http from '../../utils/http/request'
const urls = {
    LOGIN: '/v1/auth/codeLogin?code=',
    PROFILE: '/v1/sysUser/profile',
    ORGLIST: '/sys/api/fzpt/org/queryOrgList'
  }

  //获取 Code 后进行登录
  export const codeLogin = data => {
    return http.get(urls.LOGIN + data)
  }
  
  export const profile = data => {
    return http.post(urls.PROFILE, data)
  }
  
  export const orgList = data => {
    return http.get(urls.ORGLIST, data)
  }

// 获取用户详细信息
export function getInfo() {
  return request({
    url: '/getInfo',
    method: 'get'
  })
}